package main.model.rdf;

public class RdfField
{
	 String name;
     RdfType type;
     
     public RdfField(){}
     
     public RdfField(String _name, RdfType _type)
     {
    	 name = _name;
    	 type = _type;
     }
     
     public RdfField(String _name, String _type)
     {
    	 name = _name;
    	 type = new RdfType(_type);
     }
     
     public class RdfType
     {
    	 String name;
         String [] subtypes;
         
         public RdfType(String _name, String []_subtypes)
         {
        	 name = _name;
        	 subtypes = _subtypes;
         }
         
         public RdfType(String _name)
         {
        	 name = _name;
        	 subtypes = new String[0];
         }
     }
     
     public String getName()
     {
    	 return name;
     }
     
     public RdfType getType()
     {
    	 return type;
     }
     
     public String getTypeName()
     {
    	 return type.name;
     }
     
     public String [] getTypeSubTypes()
     {
    	 return type.subtypes;
     }
     
     public String toString()
     {
    	 return name + "," + type.name;
     }
}
